/*去除重复字符并排序*/
#include<iostream>
#include<cstdio>
#include<cstring>

using namespace std;
void solve(char *str,int len)
{
    int i,hash[256];
  memset(hash,0,sizeof(hash));

  for(i = 0;i < len; i++)
  {
      printf("hash[str[%d]]=%d\n", i, hash[str[i]]);
      if(0 == hash[str[i]])
      {
        
          printf("str[%d]=%d\n", i, str[i]);
             hash[str[i]] = 1;
             printf("hash[str[%d]]=%d\n", i, hash[str[i]]);
      }
   
  }
  for(i = 0; i < 256; ++i)
  {
      if(0 != hash[i])
      {
          printf("%d\n", i);
          putchar(i);
      }
   
  }
    printf("\n");
}

int main()
{
    int len;
    char str[1000];

    while(scanf("%s",str)!=EOF)
    {
        len = strlen(str);
        solve(str,len);
    }

    return 0;
}
